package com.usian.config;

import com.usian.pojo.Supply;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "springclound-priest")
public interface FeignSupply {
    @RequestMapping("/supply/findAll")
    public List<Supply> findAll(@RequestBody Supply supply);
    @PostMapping("/supply/insert")
    public ResponseResult insert(@RequestBody Supply supply);
    @PostMapping("/supply/update")
    public ResponseResult update(@RequestBody Supply supply);
    @PostMapping("/supply/delete")
    public ResponseResult delete(@RequestParam("id") Integer id);
    @GetMapping("/supply/findAllByid")
    public Supply findAllByid(@RequestParam("id") Integer id);
}
